//
//  WBN_FM_MyCacheTableViewCell.m
//  GoodManNews
//
//  Created by 王博男 on 16/1/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "WBN_FM_MyCacheTableViewCell.h"

@implementation WBN_FM_MyCacheTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createView];
    }
    return self;
}

- (void)createView
{
    self.imageV = [UIImageView new];
    [self.contentView addSubview:self.imageV];
    
    
    self.titleL = [UILabel new];
    self.titleL.textColor = [UIColor colorWithRed:0.076 green:0.007 blue:0.294 alpha:1.000];
    self.titleL.numberOfLines = 0;
    self.titleL.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.titleL];
    
    
    self.contentL = [UILabel new];
    self.contentL.textColor = [UIColor colorWithWhite:0.600 alpha:1.000];
    [self.contentView addSubview:self.contentL];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    [self.imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.contentView).offset(10);
        make.left.equalTo(self.contentView).offset(10);
        make.height.equalTo(@60);
        make.width.equalTo(@10);
        
    }];
    
    
    [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.imageV.mas_top);
        make.left.equalTo(self.imageV.mas_right).with.offset(10);
        make.height.equalTo(@45);
        make.right.equalTo(self.contentView).offset(-10);
        
    }];
    
    
    [self.contentL mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.titleL.mas_bottom);
        make.left.equalTo(self.contentView.mas_right).with.offset(-50);
        make.right.equalTo(self.contentView.mas_right).with.offset(-10);
        make.height.equalTo(@15);
        
    }];
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
